package oo2;

public class TestMaker {

	public static void main(String[] args) {
//		JucieMaker m = new JucieMaker();
//		m.brand = "九阳";
//		m.watt = 45;
//		m.show();
//
//		m.fruit = "葡萄";
//		m.makeJuice();
//		m.fruit = "西红柿";
//		m.makeJuice();

		JucieMaker2 m2 = new JucieMaker2();
		m2.brand = "九阳";
		m2.watt = 45;
		m2.show();

		String fruit = "梨子";
		String r1 = m2.makeJuice(fruit);
		System.out.println("我喝到了" + r1);
		System.out.println("<>>>>>>>>>>>>>>>>>>>>>.");
		r1 = m2.makeJuice("葡萄");
		System.out.println("我喝到了" + r1);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>");
		String f1 = "菠萝", f2 = "香蕉";
		r1 = m2.hunheJuice(f1, f2);
		System.out.println("喝到了" + r1);
	}

}
